#ifndef FORM_H
#define FORM_H

#include <QWidget>
#include "dboperator.h"

namespace Ui {
class Form;
}

class trainer : public QWidget
{
    Q_OBJECT

public:

    explicit trainer(QWidget *parent, int id);        // 传入父窗口指针，传入用户id
    ~trainer();
    void closeEvent(QCloseEvent *);
    // 显示个人信息
    void showPersonMsg(container msg);

    QString trans(QString s);


signals:
    ExitTrainer();     // 关闭信号槽

private slots:

    void on_closebtn_clicked();

private:
    Ui::Form *ui;
    DbOperator* dbase;
    container msg;
    int id;
};

#endif // FORM_H
